package com.test;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class DownPic {
    public static void main(String[] args) throws Throwable {
        String path = "c:/users/zhangdan/desktop/html.txt";
        BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(path), "UTF-8"));
        StringBuffer sb = new StringBuffer();
        String line = reader.readLine();
        while (line != null) {
            if(line.contains("from=pc")) {
                sb.append(line.substring(line.indexOf("src") +5, line.indexOf("=pc")+3));
                sb.append("\n");
            }
            line = reader.readLine();
        }
        reader.close();
        System.out.println(sb.toString());
    }
}
